package com.gdut;

import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        for (int i = 0; i < 3; i++) {
            int b = a % 10;
            System.out.print(b);
            a /= 10;
        }
    }
}
